package com.ruoyi.client.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 采购订单 对象 sys_purchase_order
 *
 * @author ruoyi
 * @date 2022-09-14
 */
public class SysPurchaseOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long purId;

    /**
     * 总金额
     */
    @Excel(name = "总金额")
    private Long purPrice;

    /**
     * 采购人
     */
    @Excel(name = "采购人")
    private String purchaser;

    /**
     * 订单批号
     */
    @Excel(name = "订单批号")
    private String batch;

    /**
     * 采购日期
     */
    @Excel(name = "采购日期")
    private String purTime;

    /**
     * 商品列表
     */
    private List<SysMedical> list;

    private List<SysPurOrderGoods> sysPurOrderGoodsList;

    public List<SysPurOrderGoods> getSysPurOrderGoodsList() {
        return sysPurOrderGoodsList;
    }

    public void setSysPurOrderGoodsList(List<SysPurOrderGoods> sysPurOrderGoodsList) {
        this.sysPurOrderGoodsList = sysPurOrderGoodsList;
    }

    public List<SysMedical> getList() {
        return list;
    }

    public void setList(List<SysMedical> list) {
        this.list = list;
    }

    public void setPurId(Long purId) {
        this.purId = purId;
    }

    public Long getPurId() {
        return purId;
    }

    public void setPurPrice(Long purPrice) {
        this.purPrice = purPrice;
    }

    public Long getPurPrice() {
        return purPrice;
    }

    public void setPurchaser(String purchaser) {
        this.purchaser = purchaser;
    }

    public String getPurchaser() {
        return purchaser;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getBatch() {
        return batch;
    }

    public void setPurTime(String purTime) {
        this.purTime = purTime;
    }

    public String getPurTime() {
        return purTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("purId", getPurId())
                .append("purPrice", getPurPrice())
                .append("purchaser", getPurchaser())
                .append("batch", getBatch())
                .append("purTime", getPurTime())
                .append("list", getList())
                .append("sysPurOrderGoodsList",getSysPurOrderGoodsList())
                .toString();
    }
}
